package ma.jeetconsulting.pocs.persistence;

import java.util.List;

import ma.jeetconsulting.pocs.domain.ToDoResolver;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;



public interface ToDoResolverRepository extends CrudRepository<ToDoResolver, Long> {
	
	@Query("From ToDoResolver")
	public List<ToDoResolver> findAll();
	
	@Query("SELECT t FROM ToDoResolver t WHERE t.firstDependency.id = ?1 AND t.secondDependency.id = ?2")
	public ToDoResolver getTodoResolverFor(Long id1, Long id2);

}
